package com.yjy.orderStateTest.impl;

import com.yjy.orderStateTest.Context;
import com.yjy.orderStateTest.OrderState;

/**
 * 待付款实现类
 */
public class PendingPaymentState implements OrderState {
    @Override
    public void action(Context context){
        context.setOrderState(new WaitOutStockState());
    }
    @Override
    public void doPrint(){
        System.out.println("处理待付款状态的逻辑");
    }
}